package com.tanhua.server.exceptions;

import lombok.Getter;

@Getter
public enum TanhuaErrorEnums {

    ERROR(999999,"系统异常稍后再试"),
    CODEFAIL(1000,"发送验证码失败"),
    CODEDUPLICATE(1001,"上一次发送的验证码还未失效"),
    CODELOGINERROR(1002,"验证码错误11"),
    CODETIMEOUTERROR(1003,"验证码超时11"),
    FACEERROR(4000,"图片非人像，请重新上传!")
    ;


//    状态码和错误提示

    private int code;
    private String message;
    TanhuaErrorEnums(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
